//////////////////////////////////////////////////////////////////////////////////
//
//	client commands
//		- Version 1.1
//		- 03.27.2006
//		- diamond-optic
//
//////////////////////////////////////////////////////////////////////////////////
//
// Information:
//
// - Sets client variables.
//
// Credit:
//
// - Anonymous for the method (cl_dlmax.sma)
//
// Changelog:
//
// - 03.19.2006 Version 1.0
//	Initial release
// - 03.27.2006 Version 1.1
//	Added cl_particlefx
//
//////////////////////////////////////////////////////////////////////////////////

#include <amxmodx>

new p_sv_r_decals, p_sv_cl_dlmax, p_sv_cl_timeout, p_sv_cl_particlefx

public plugin_init()
{
	register_plugin("client commands","1.1","diamond-optic")
	
	register_cvar("client_commands_stats", "1.1", FCVAR_SERVER|FCVAR_SPONLY)
	
	p_sv_r_decals = register_cvar("sv_r_decals","420")
	p_sv_cl_dlmax = register_cvar("sv_cl_dlmax","128")
	p_sv_cl_timeout = register_cvar("sv_cl_timeout","90")
	p_sv_cl_particlefx = register_cvar("sv_cl_particlefx","2")
}
public client_connect(id)
{
	client_cmd(id,"r_decals %d", get_pcvar_num(p_sv_r_decals))
	client_cmd(id,"cl_dlmax %d", get_pcvar_num(p_sv_cl_dlmax))
	client_cmd(id,"cl_timeout %d", get_pcvar_num(p_sv_cl_timeout))
	client_cmd(id,"cl_particlefx %d", get_pcvar_num(p_sv_cl_particlefx))
}
